# This is a sample Python script.
import time

# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.

from selenium import webdriver
from selenium.common import exceptions
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get('file:///C:/Users/IT14/Desktop/sdsd.html')
driver.maximize_window()
driver.implicitly_wait(30)

alert_button = driver.find_element(By.ID,'alert')
alert_button.click()
alert = driver.switch_to_alert()
print(alert.text)
time.sleep(2)
alert.dismiss()
